﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
namespace DataAccess
{
    public class ViewHistory
    {
        public static DataTable View_Weekago(string cardNo)
        {
            return DataAccess.ExeStoredWithParamToDataTable("View_Weekago", "@CardNo", cardNo);
        }
        public static DataTable View_Monthago(string cardNo)
        {
            return DataAccess.ExeStoredWithParamToDataTable("View_Monthago", "@CardNo", cardNo);
        }
        public static DataTable View_4Monthsago(string cardNo)
        {
            return DataAccess.ExeStoredWithParamToDataTable("View_4Monthsago", "@CardNo", cardNo);
        }
        public static DataTable View_6Monthsago(string cardNo)
        {
            return DataAccess.ExeStoredWithParamToDataTable("View_6Monthsago", "@CardNo", cardNo);
        }
        public static DataTable View_1Yearago(string cardNo)
        {
            return DataAccess.ExeStoredWithParamToDataTable("View_1Yearago", "@CardNo", cardNo);
        }
        public static DataTable View_2Yearago(string cardNo)
        {
            return DataAccess.ExeStoredWithParamToDataTable("View_2Yearago", "@CardNo", cardNo);
        }
    }
}
